﻿using System;
using System.ComponentModel;

namespace WpfApp1.Model
{
    class Rule : INotifyPropertyChanged
    {
        private long id;
        private string prefix;
        private string directorypath;

        public string Prefix { get { return prefix; } set { prefix = value; NotifyPropertyChanged("Prefix"); } }
        public string Directorypath { get { return directorypath; } set { directorypath = value; NotifyPropertyChanged("Directorypath"); } }
        public long Id { get => id; set => id = value; }

        public event PropertyChangedEventHandler PropertyChanged;

        protected void NotifyPropertyChanged(String info)
        {
            PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(info));
        }
    }
}
